package com.haisen.controller;


import com.haisen.core.utils.PageResultSet;
import com.haisen.dataobject.entity.JobVerifyCode;
import com.haisen.dataobject.query.JobVerifyCodeQuery;
import com.haisen.service.JobVerifyCodeService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/verfycode")
public class JobVerifyCodeController {

   @Autowired
   private JobVerifyCodeService jobVerifyCodeService;

    @ResponseBody
    @RequiresPermissions("jobsch:view")
    @RequestMapping("/list")
    public PageResultSet<JobVerifyCode> list(JobVerifyCodeQuery jobVerifyCodeQuery) {
        //页面显示改为验证码推送记录
        return jobVerifyCodeService.findBypage(jobVerifyCodeQuery);
    }



}
